import 'package:flutter/material.dart';
import './routers/routers.dart';

//ListView列表组件
void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      //全局标题居中配置
      theme: ThemeData(appBarTheme: AppBarTheme(centerTitle: true)),
      initialRoute: '/',
      // initialRoute: '/registrFirst',
      // initialRoute: '/message',
      onGenerateRoute: onGenerateRoute,
      // routes: {
      //   '/': (context) => MyTabs(),
      //   '/news': (context) => NewsPage(),
      //   '/form': (context) => FormPage(),
      //   '/category': (context) => CategoryPage(),
      // },
    );
  }
}
